package com.qf.controller;

import com.qf.service.AdminBedService;
import com.qf.service.BedService;
import com.qf.utils.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/AdminBed")

public class AdminBedController {
    @Autowired
    AdminBedService adminBedService;
    @GetMapping("/findBed")
    public ResultMsg findAllBed(Integer page,Integer limit){
        return adminBedService.findBed(page,limit);

    }


}
